package com.zzz.proxy;

import com.zzz.mylibrary.util.LogZ;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class ProxyInvocation implements InvocationHandler {
    private ICommonCallback iCommonCallback;

    public ProxyInvocation(ICommonCallback iCommonCallback){
        this.iCommonCallback=iCommonCallback;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        LogZ.e("before");
        iCommonCallback.proxyable();
        LogZ.e("after");

        return null;
    }

}
